how to calculate variance of lottery